import { Controller } from "../../mvc/core/Controller";
import { ParamsConst } from "../../common/global/ParamsConst";
import { ProxyType } from "../../common/global/ProxyType";
import { FaceBookBtn } from "../view/facebook/FaceBookBtn";
//class FacebookControl
    
    export  class FacebookControl extends Controller
    {
        constructor()
        {
            
            super();if (ParamsConst.instance.proxyType == ProxyType.TW && ParamsConst.instance.isOpenFacebook == 1) 
            {
                this.btn.show();
            }
            return;
        }

        /* internal  */get btn(): FaceBookBtn
        {
            if (!this._btn) 
            {
                this._btn = new FaceBookBtn();
            }
            return this._btn;
        }

        private /* var */_btn: FaceBookBtn;
    }
